package utils;

import java.io.Serializable;

import entity.Easybuy_product;

public class ShoppingCartItem implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private Easybuy_product product;
	private int count;
	private double cost;
	
	public ShoppingCartItem(Easybuy_product product,int count){
		this.product=product;
		this.count=count;
		this.cost=product.getPrice()*count;
	}
	
	public Easybuy_product getProduct() {
		return product;
	}
	public void setProduct(Easybuy_product product) {
		this.product = product;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
		this.cost = product.getPrice() * count;
	}
	public double getCost() {
		return cost;
	}
	public void setCost(double cost) {
		this.cost = cost;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
